package controller
{
    import model.UserProxy;

    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    /**
     * @author: Alexey Kolonitsky <alexey@kolonitsky.org>
     * @date: 2/12/12 - 4:24 PM
     */
    public class UserSignOutCommand extends SimpleCommand
    {
        override public function execute(notification:INotification):void
        {
            super.execute(notification);
            var userProxy:UserProxy = facade.retrieveProxy(UserProxy.NAME) as UserProxy;
            userProxy.signout();
        }
    }
}
